from django.db import models


class HostGroup(models.Model):
    """
    存储主机组
    """
    name = models.CharField(max_length=64, unique=True)
    hosts = models.ManyToManyField("Host")
    host_to_remote_user = models.ManyToManyField("HostToRemoteUser")

    def __str__(self):
        return self.name
